/*
 * Tulalip Library, an enhanced ORMLite library.
 * Copyright (C) 2010 Richard Schilling
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.gnu.tulalip.android.widget;

/**
 * An interface that should be inherited by objects that are handled by
 * ORMAdapter and ORMAdapterCached.
 * 
 * @author Richard Schilling (coderroadie@gmail.com)
 * @param <T> the ORMLite defined class
 */
public interface AdapterObject<T> extends Comparable<AdapterObject<T>> {

    /**
     * Returns the identifier of the object. For example, the autogenerated ID
     * of a field.
     * 
     * @return the identifier of the object.
     */
    public long getId();

}
